<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>testing (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
       <span class="fn">labs.testing</span>
</div>

<hr/>


  <h2>Classes</h2>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_AllOfMatcher.html">
          goog.labs.testing.AllOfMatcher</a><br/>
        <div class="class-details">The AllOf matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_AnyOfMatcher.html">
          goog.labs.testing.AnyOfMatcher</a><br/>
        <div class="class-details">The AnyOf matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_AnythingMatcher.html">
          goog.labs.testing.AnythingMatcher</a><br/>
        <div class="class-details">The Anything matcher. Matches all possible inputs.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_CloseToMatcher.html">
          goog.labs.testing.CloseToMatcher</a><br/>
        <div class="class-details">The CloseTo matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_ContainsStringMatcher.html">
          goog.labs.testing.ContainsStringMatcher</a><br/>
        <div class="class-details">The ContainsString matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_EndsWithMatcher.html">
          goog.labs.testing.EndsWithMatcher</a><br/>
        <div class="class-details">The EndsWith matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_EqualToIgnoringWhitespaceMatcher.html">
          goog.labs.testing.EqualToIgnoringWhitespaceMatcher</a><br/>
        <div class="class-details">The EqualToIgnoringWhitespace matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_EqualToMatcher.html">
          goog.labs.testing.EqualToMatcher</a><br/>
        <div class="class-details">The EqualTo matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_EqualsMatcher.html">
          goog.labs.testing.EqualsMatcher</a><br/>
        <div class="class-details">The Equals matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_GreaterThanEqualToMatcher.html">
          goog.labs.testing.GreaterThanEqualToMatcher</a><br/>
        <div class="class-details">The GreaterThanEqualTo matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_GreaterThanMatcher.html">
          goog.labs.testing.GreaterThanMatcher</a><br/>
        <div class="class-details">The GreaterThan matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_HasEntriesMatcher.html">
          goog.labs.testing.HasEntriesMatcher</a><br/>
        <div class="class-details">The HasEntries matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_HasEntryMatcher.html">
          goog.labs.testing.HasEntryMatcher</a><br/>
        <div class="class-details">The HasEntry matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_HasKeyMatcher.html">
          goog.labs.testing.HasKeyMatcher</a><br/>
        <div class="class-details">The HasKey matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_HasPropertyMatcher.html">
          goog.labs.testing.HasPropertyMatcher</a><br/>
        <div class="class-details">The HasProperty matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_HasValueMatcher.html">
          goog.labs.testing.HasValueMatcher</a><br/>
        <div class="class-details">The HasValue matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_InstanceOfMatcher.html">
          goog.labs.testing.InstanceOfMatcher</a><br/>
        <div class="class-details">The InstanceOf matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_IsNotMatcher.html">
          goog.labs.testing.IsNotMatcher</a><br/>
        <div class="class-details">The IsNot matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_IsNullMatcher.html">
          goog.labs.testing.IsNullMatcher</a><br/>
        <div class="class-details">The IsNull matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_IsNullOrUndefinedMatcher.html">
          goog.labs.testing.IsNullOrUndefinedMatcher</a><br/>
        <div class="class-details">The IsNullOrUndefined matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_IsUndefinedMatcher.html">
          goog.labs.testing.IsUndefinedMatcher</a><br/>
        <div class="class-details">The IsUndefined matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_LessThanEqualToMatcher.html">
          goog.labs.testing.LessThanEqualToMatcher</a><br/>
        <div class="class-details">The LessThanEqualTo matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_LessThanMatcher.html">
          goog.labs.testing.LessThanMatcher</a><br/>
        <div class="class-details">The lessThan matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="interface_goog_labs_testing_Matcher.html">
          goog.labs.testing.Matcher</a><br/>
        <div class="class-details">A matcher object to be used in assertThat statements.
</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_MatcherError.html">
          goog.labs.testing.MatcherError</a><br/>
        <div class="class-details">Error thrown when a Matcher fails to match the input value.
</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_ObjectEqualsMatcher.html">
          goog.labs.testing.ObjectEqualsMatcher</a><br/>
        <div class="class-details">The Equals matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_RegexMatcher.html">
          goog.labs.testing.RegexMatcher</a><br/>
        <div class="class-details">The MatchesRegex matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_StartsWithMatcher.html">
          goog.labs.testing.StartsWithMatcher</a><br/>
        <div class="class-details">The StartsWith matcher.

</div>
 </div>
 <div class="fn-constructor">
        <a href="class_goog_labs_testing_StringContainsInOrderMatcher.html">
          goog.labs.testing.StringContainsInOrderMatcher</a><br/>
        <div class="class-details">The StringContainsInOrdermatcher.

</div>
 </div>
   
<br/>

  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>




  <h2>Global Functions</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.labs.testing.assertThat"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.labs.testing.</span><span class="entryName">assertThat<span class="args">(<span class="arg">actual</span>,&nbsp;<span class="arg">matcher</span>,&nbsp;<span class="arg">opt_reason</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Asserts that the actual value evaluated by the matcher is true.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">actual</span>
        : <span class="type">*</span>
        <div class="entryOverview">The object to assert by the matcher.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">matcher</span>
        : <span>!</span><span class="type"><a href="interface_goog_labs_testing_Matcher.html">goog.labs.testing.Matcher</a></span>
        <div class="entryOverview">A matcher to verify values.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_reason</span>
        : <span class="type">string=</span>
        <div class="entryOverview">Description of what is asserted.</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_labs_testing_assertthat.js.source.html#line37">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>



  <h2>Global Properties</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.labs.testing.EqualToIgnoringCaseMatcher"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.labs.testing.</span><span class="entryName">EqualToIgnoringCaseMatcher</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_labs_testing_stringmatcher.js.source.html#line23">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.labs.testing.assertThatTest"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.labs.testing.</span><span class="entryName">assertThatTest</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_labs_testing_assertthat_test.js.source.html#line15">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.labs.testing.decoratorMatcherTest"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.labs.testing.</span><span class="entryName">decoratorMatcherTest</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_labs_testing_decoratormatcher_test.js.source.html#line15">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.labs.testing.dictionaryMatcherTest"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.labs.testing.</span><span class="entryName">dictionaryMatcherTest</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_labs_testing_dictionarymatcher_test.js.source.html#line15">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.labs.testing.logicMatcherTest"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.labs.testing.</span><span class="entryName">logicMatcherTest</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_labs_testing_logicmatcher_test.js.source.html#line15">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.labs.testing.numberMatcherTest"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.labs.testing.</span><span class="entryName">numberMatcherTest</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_labs_testing_numbermatcher_test.js.source.html#line15">Code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>





  <a name="goog.labs.testing.objectMatcherTest"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.labs.testing.</span><span class="entryName">objectMatcherTest</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_labs_testing_objectmatcher_test.js.source.html#line15">Code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>





  <a name="goog.labs.testing.stringMatcherTest"></a>

  <td>


     <div class="arg">
        <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.labs.testing.</span><span class="entryName">stringMatcherTest</span>
        : 
     </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

  </td>


  <td class="view-code">
     <a href="local_closure_goog_labs_testing_stringmatcher_test.js.source.html#line15">Code &raquo;</a>
  </td>
     </tr>


  </table>
</div>
      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package labs</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="" current="labs.testing"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
